package redisHandler

import (
	"encoding/json"
	"io"
	"net/http"
)

func Handler(w http.ResponseWriter, r *http.Request) {
	ret := new(Ret)
	ret.Code = 0
	ret.Msg = "success"
	ret.Param = "deviceId"
	ret_json,_ := json.Marshal(ret)
	io.WriteString(w, string(ret_json))
}

type Data struct{
	device string
}

type Ret struct{
	Code int
	Param string
	Msg string
}
